]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: Export STARTUP_ANIMATION_TIME
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 25 Nov 2025 21:40:00 +0000 (22:40 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 14 Jan 2026 17:58:57 +0000 (18:58 +0100)
We are using it in overviewControls but the value is not exported.

This caused an issue when the animations are not enabled, since in a
racy way (e.g. only sometimes, depending on the init speed) the value
was undefined, and so we ended up falling back to the default animation
duration time.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3982>
(cherry picked from commit 087b0fda5d64f7a74460ef4a0f923a1235aff50f)

js/ui/layout.js

index 354ef60d412d593a55803fff36cd487bd90f4ff6..e47c82f936f78b56812f2313faf776935b919916 100644 (file)
@@ -16,7 +16,7 @@ import * as Main from './main.js';
 import * as Params from '../misc/params.js';
 import * as Ripples from './ripples.js';
 
-const STARTUP_ANIMATION_TIME = 500;
+export const STARTUP_ANIMATION_TIME = 500;
 const BACKGROUND_FADE_ANIMATION_TIME = 1000;
 
 const HOT_CORNER_PRESSURE_THRESHOLD = 100; // pixels